This file contains information on replicating the paper, "The Politics of Accountability in Supreme Court Nominations: Voter Recall and Assessment of Senator Votes on Nominees" by Leeann Bass, Charles Cameron, and Jonathan Kastellec.

***Table of Contents***

The following files are Stata files used in the replication (listed in order they are used in the paper.

-- "sc_compendium_data_updated_all_nominees.dta" A dataset with information about Supreme Court nominees; used to create Figure 1.

-- "newspaper_data.dta" Newspaper coverage of nominees from 1930-2020; used to create Figure 2.

-- "interest_group_data.dta" Interest group participation in nominations from 1930-2020; used to create Figure 3.

-- "thomas_wide_data.dta" The wide version of the Thomas dataset.

-- "thomas_long_data.dta" The long version of the Thomas dataset.

-- "CCES_soto_kagan_long.dta" The wide version of the Sotomayor and Kagan dataset.

-- "CCES_soto_kagan_long.dta" The long version of the Sotomayor and Kagan dataset.

There is one Stata .do file and one script used to run the statistical analyses.

-- "bass_et_al_psrm_politics_of_accountabilty_STATA_analyses.do" implements all of the regressions used in the paper

-- "bass_et_al_psrm_politics_of_accountabilty_R_analyses.R" creates all the figures in the paper. It also performs the calculations used in:
		-- the recall analyses (Tables 1 and A-17);
		-- the comparison of perceived nominee agreement and perceived party agreement in Table 5; 
		-- the sensitivity analyses presented in Appendix Section A.3.2.

Notes on Stata and R

-- Stata SE 17.0 was used.

-- Here is the session info that describes which packages (and versions) in R that we used.

> sessionInfo()
R version 4.1.2 (2021-11-01)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Catalina 10.15.7

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] haven_2.4.3        sensemakr_0.1.4    readstata13_0.10.0 ggrepel_0.9.1     
 [5] forcats_0.5.1      stringr_1.4.0      dplyr_1.0.7        purrr_0.3.4       
 [9] readr_2.1.0        tidyr_1.1.4        tibble_3.1.6       ggplot2_3.3.5     
[13] tidyverse_1.3.1   

loaded via a namespace (and not attached):
 [1] Rcpp_1.0.7       lubridate_1.8.0  lattice_0.20-45  assertthat_0.2.1
 [5] utf8_1.2.2       R6_2.5.1         cellranger_1.1.0 plyr_1.8.6      
 [9] backports_1.3.0  reprex_2.0.1     coda_0.19-4      httr_1.4.2      
[13] pillar_1.6.4     rlang_0.4.12     readxl_1.3.1     minqa_1.2.4     
[17] rstudioapi_0.13  nloptr_1.2.2.3   Matrix_1.3-4     splines_4.1.2   
[21] lme4_1.1-27.1    munsell_0.5.0    broom_0.7.10     compiler_4.1.2  
[25] modelr_0.1.8     xfun_0.28        pkgconfig_2.0.3  lemon_0.4.5     
[29] tidyselect_1.1.1 gridExtra_2.3    fansi_0.5.0      crayon_1.4.2    
[33] tzdb_0.2.0       dbplyr_2.1.1     withr_2.4.2      MASS_7.3-54     
[37] grid_4.1.2       nlme_3.1-153     jsonlite_1.7.2   arm_1.12-2      
[41] gtable_0.3.0     lifecycle_1.0.1  DBI_1.1.1        magrittr_2.0.1  
[45] scales_1.1.1     cli_3.1.0        stringi_1.7.5    fs_1.5.0        
[49] xml2_1.3.2       ellipsis_0.3.2   generics_0.1.1   vctrs_0.3.8     
[53] boot_1.3-28      tools_4.1.2      glue_1.5.0       hms_1.1.1       
[57] abind_1.4-5      colorspace_2.0-2 rvest_1.0.2      knitr_1.36      

  